package com.budwk.app.sqfw.services;

import com.budwk.app.sqfw.models.SqfwDownFileRecordLog;
import com.budwk.app.sqfw.vo.SqfwDownFileRecordLogReqVo;
import com.budwk.starter.common.result.Result;
import com.budwk.starter.database.service.BaseService;

import java.util.Optional;

public interface SqfwDownRecordlogService extends BaseService<SqfwDownFileRecordLog>{

    void insertRecordLog(String userId, String reqParam, String content, String title, String url, String entityId);

    Result<?> listByPage(SqfwDownFileRecordLogReqVo param);

    // 查询url
    Optional<String> getUrlByEntityIdAndTitle(String entityId, String title);

    // 查询url
    SqfwDownFileRecordLog getUrlByEntityId(String entityId);
}
